import { App } from "vue";
import { registerEditorProvider } from "@ibiz-template/runtime";
import { SpanEditorProvider } from "./i-biz-span.provider";
import Span from "./i-biz-span.vue";

export const IBizSpan = {
  install(v: App) {
    v.component("IBizSpan", Span);
    // 标签
    registerEditorProvider("SPAN", () => new SpanEditorProvider());
    registerEditorProvider(
      "FIELD_TEXT_DYNAMIC_SPAN",
      () => new SpanEditorProvider()
    );
  },
};
